package com.powernode.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 *
 */
@AllArgsConstructor
@NoArgsConstructor
public enum CodeEnum {
    //响应前端成功，Result 中的code值为0
    SUCCESS(0 , "秒杀成功"),
    //响应前端失败，code值为-1
    ERROR(-1 , "秒杀失败");

    @Getter
    @Setter
    private int code;

    @Getter
    @Setter
    private String msg;

}
